package com.yupi.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (UserLoginState)实体类
 *
 * @author makejava
 * @since 2024-03-07 14:11:04
 */
@Data
@TableName(value = "user_sign_state")
public class UserSignState implements Serializable {
    private static final long serialVersionUID = 548574712285149492L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("userId")
    private Integer userId;

    @TableField("deptId")
    private Integer deptId;

    @TableField("signInGpsLocation")
    private String signInGpsLocation;

    @TableField("signOutGpsLocation")
    private String signOutGpsLocation;

    @TableField("signInLocation")
    private String signInLocation;

    @TableField("signOutLocation")
    private String signOutLocation;

    @TableField("lateSign")
    private Integer lateSign;

    @TableField("earlySign")
    private Integer earlySign;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("signInTime")
    private Date signInTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("signOutTime")
    private Date signOutTime;


}

